interface FetchRegistrationDetailAPIResData {
  code: number
  msg: string
  time: string
  data: RegistrationDetail
}

/**
 * @description 根据传入的报名 id，获取报名详情
 *
 * @param id - 报名 id，从报名记录列表中获取
 */
export function fetchRegistrationDetailAPI(id: string, token: string) {
  return httpInstance.get<FetchRegistrationDetailAPIResData>(
    '/api/classes/recorddetail',
    { params: { id }, headers: { token } },
  )
}
